package com.sinven.mapper;

import com.sinven.pojo.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {
    List<Teacher> queryAll(@Param("startIndex")long startIndex,
                           @Param("pageSize") int pageSize);

    long countTeachers();

    Teacher queryTeacherByTid(long tid);

    int updateTeacher(Teacher teacher);

    int addTeacher(Teacher teacher);

    int deleteTeacher(long tid);
}
